<template>
  <div>
    <h3 ref="Demo">我是componentstwo组件{{ num }}</h3>
    <button ref="cli" @click="docum">点击获取</button>
  </div>
</template>

<script>
export default {
  name: 'DemoComponrnttwo',

  data() {
    return {
      num: 1,
    }
  },
  // updated() {
  //   this.num += 1
  // },
  mounted() {},

  methods: {
    docum() {
      console.log('我是componentstwo组件')
    },
  },
}
</script>

<style lang="scss" scoped>
</style>